package com.atguigu.gmall.activity.client.impl;

import com.atguigu.gmall.activity.client.SeckillGoodsFeignClient;
import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.activity.SeckillGoods;

import java.util.List;
import java.util.Map;

public class SeckillGoodsFeignClientImpl implements SeckillGoodsFeignClient {
    @Override
    public Result<List<SeckillGoods>> getAllSeckillGoods() {
        return Result.<List<SeckillGoods>>fail().message("服务降级");
    }

    @Override
    public Result<SeckillGoods> getSecKillGoodsBySkuId(Long skuId) {
        return Result.<SeckillGoods>fail().message("服务降级");
    }

    @Override
    public Result<Map<String, Object>> getOrderTradeData() {
        return Result.<Map<String, Object>>fail().message("服务降级");
    }
}
